package classfile

/*
	CONSTANT_Class_info {
	    u1 tag;
	    u2 name_index;
	}
*/
type ConstantClassInfo struct {
	cp        ConstantPool
	nameIndex uint16
}

func (e *ConstantClassInfo) readInfo(reader *ClassReader) {
	e.nameIndex = reader.readUint16()
}
func (e *ConstantClassInfo) Name() string {
	return e.cp.getUtf8(e.nameIndex)
}
